package com.iemp.web.controller.base.impl;

import com.github.pagehelper.PageInfo;
import com.iemp.bean.IEntity;
import com.iemp.service.base.AbstractPageService;
import com.iemp.web.controller.base.IPageController;
import org.springframework.web.bind.annotation.RequestParam;

public class PageBaseController<E extends IEntity> extends BaseController<E, AbstractPageService<E>> implements IPageController<E> {


    public PageBaseController(AbstractPageService<E> genericService) {
        super(genericService);
    }

    @Override
    public PageInfo<E> findAllByPage(int pageNum, int pageSize) {
        return genericService.findAllByPage(pageNum, pageSize);
    }
}
